package cn.chen.design;

public class Mother {

    private IReder book;

    public void setiReder(IReder iReder){
        this.book = iReder;
    }

    public Mother(IReder iReder){
        this.book = iReder;
    }

    public Mother(){}

    public void readToChild(IReder iReder){
        System.out.println("妈妈讲故事");
        System.out.println(iReder.getContent());
    }

    public static void main(String[] args) {
        Mother mother = new Mother();
        mother.readToChild(new News());
        mother.readToChild(new Book());
    }
}
